﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Ohalc_WinForms
{
    public partial class AddNextSessionManually : Form
    {
        public AddNextSessionManually()
        {
            InitializeComponent();
            BaseInti();
        }

        private void BaseInti()
        {
            DataTable tbl = new DataTable();
            DataColumn display = new DataColumn("Display");
            DataColumn value = new DataColumn("Value");
            tbl.Columns.Add(display);
            tbl.Columns.Add(value);

            DataRow row = tbl.NewRow();
            row[display] = "Japan";
            row[value] = "jp";
            tbl.Rows.Add(row);

            row = tbl.NewRow();
            row[display] = "Europe";
            row[value] = "eu";
            tbl.Rows.Add(row);

            row = tbl.NewRow();
            row[display] = "USA";
            row[value] = "us";
            tbl.Rows.Add(row);

            cmb_SessionPlace.DataSource = tbl;
            cmb_SessionPlace.DisplayMember = "Display";
            cmb_SessionPlace.ValueMember = "Value";
        }

        private void btn_Cancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

       
    }
}
